﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EffectSelfDestruct : MonoBehaviour
{
	void Start()
	{
		ParticleSystem p = (ParticleSystem)gameObject.GetComponent("ParticleSystem");
		Destroy(gameObject, p.duration);
	}
}
